<?php

namespace App\Console\Commands;

use App\Libraries\DingTalk\DingTalkUser;
use Illuminate\Console\Command;

class Test extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'command:test';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = '测试';

    /**
     * Execute the console command.
     */
    public function handle()
    {
        // php81 artisan command:test

        // $result = app(DingTalkUser::class)->getUserByMobile('18810980664');

        // $result = app(DingTalkUser::class)->getUser('manager8815');

        // $result = app(DingTalkUser::class)->getUserIdList();

        // $result = app(DingTalkUser::class)->getDeptUserList();

        dd($result);
    }
}
